package
{
	import org.flixel.*;

	public class GameObject extends FlxSprite {

		public var z: Number;

		public function GameObject(X: Number, Y: Number, Z: Number = 0) {
			super(X, Y);
			health = 10;
			z = Z;
			antialiasing = true;
		}

		override public function update(): void {
			if (health <= 0)
				exists = false;
			super.update();
		}

	}
}